/**
 *******************************************************************************
 * @file  gpio/gpio_output/source/main.c
 * @brief Main program of GPIO for the Device Driver Library.
 @verbatim
   Change Logs:
   Date             Author          Notes
   2020-06-12       Zhangxl         First version
 @endverbatim
 *******************************************************************************
 * Copyright (C) 2020, Huada Semiconductor Co., Ltd. All rights reserved.
 *
 * This software component is licensed by HDSC under BSD 3-Clause license
 * (the "License"); You may not use this file except in compliance with the
 * License. You may obtain a copy of the License at:
 *                    opensource.org/licenses/BSD-3-Clause
 *
 *******************************************************************************
 */

/*******************************************************************************
 * Include files
 ******************************************************************************/
#include "app_task.h"
#include "rtthread.h"
/*******************************************************************************
 * Local type definitions ('typedef')
 ******************************************************************************/


/*******************************************************************************
 * Local pre-processor symbols/macros ('#define')
 ******************************************************************************/

/*******************************************************************************
 * Global variable definitions (declared in header file with 'extern')
 ******************************************************************************/

/*******************************************************************************
 * Local function prototypes ('static')
 ******************************************************************************/
static void Idle_Hook_Entry(void);

#define THREAD_PRIORITY     5
#define THREAD_STACK_SIZE   512
#define THREAD_TIMESLICE    5

/*******************************************************************************
 * Local variable definitions ('static')
 ******************************************************************************/

/*******************************************************************************
 * Function implementation - global ('extern') and local ('static')
 ******************************************************************************/

/**
 * @brief  Main function of GPIO project
 * @param  None
 * @retval int32_t return value, if needed
 */
int main(void)
{    
  rt_thread_t tid;
	
  tid = rt_thread_create("led", Task_LED_Entry,RT_NULL, THREAD_STACK_SIZE, THREAD_PRIORITY, THREAD_TIMESLICE);
  if(tid != RT_NULL)
  {
    rt_thread_startup(tid);
  }
	
  tid = rt_thread_create("dis", Task_Print_Entry, RT_NULL,THREAD_STACK_SIZE,THREAD_PRIORITY+1, THREAD_TIMESLICE);
  if(tid != RT_NULL)
  {
    rt_thread_startup(tid);
  }
	
  rt_thread_idle_sethook(Idle_Hook_Entry);
  return 0;
}


static void Idle_Hook_Entry(void)
{
	
}




/*******************************************************************************
 * EOF (not truncated)
 ******************************************************************************/
